package com.demo.core.enums;

/**
 * 用户身份枚举
 */
public enum UserRoleEnum {
    STUDENT(0),
    TEACHER(1),
    ADMIN(3)
    ;

    private Integer code;
    UserRoleEnum(Integer code) {
        this.code = code;
    }

    public boolean equalsValue(Integer code) {
        return this.code == code;
    }
}
